from django.contrib import admin

# Register your models here.
from compus import models


class OfflineAdmin(admin.ModelAdmin):
    list_display = ["belonging_user", "create_time", "mission_type", "mission_require",
                    "effect_time", "mission_salary", "mission_status", "mission_phone",
                    "mission_remarks"]


class UserCenterAdmin(admin.ModelAdmin):
    list_display = ["compus_user", "user_sex", "user_phone", "user_email", "user_remarks", "create_time", "update_time"]


class AcceptMissionAdmin(admin.ModelAdmin):
    list_display = ["accept_mission", "accept_user", "create_time",
                    "update_time", "attachment_name", "attachment_url", "remark", "comment"]


admin.site.register(models.AcceptMission, AcceptMissionAdmin)
admin.site.register(models.UserCenter, UserCenterAdmin)
admin.site.register(models.Offline, OfflineAdmin)
